/* eslint-disable @typescript-eslint/no-explicit-any */
/*
 *  Copyright 2021 Collate
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

 /**
 * 用于在 GET 列表响应中进行基于游标的分页信息的类型
 */
export interface Paging {
    /**
     * 用于获取下一页的后游标（有关详细信息，请参见 API 分页）
     */
    after?: string;
    /**
     * 用于获取上一页的前游标（有关详细信息，请参见 API 分页）
     */
    before?: string;
    /**
     * Limit used in case of offset based pagination.
     */
    limit?: number;
    /**
     * 在基于偏移量的分页的情况下使用的偏移量
     */
    offset?: number;
    /**
     * 可通过分页查看的条目的总数
     */
    total: number;
}
